package com.mo.global.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @Auther:Lang
 * @Date:2022-12-05
 * @Time:10:33
 * @Description:分页查询
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PageModel<T> {
    private int pageNum;  // 当前页数
    private int pageSize; // 每页显示条数
    private int totalPage; // 总页数
    private int totalCount; // 总条数
    private List<T> data;
}
